gsk_render_node_unref (info->last_node);
- g_slice_free (GtkFpsInfo, info);
+ g_free (info);
}
static double
info = g_hash_table_lookup (self->infos, widget);
if (info == NULL)
{
- info = g_slice_new0 (GtkFpsInfo);
+ info = g_new0 (GtkFpsInfo, 1);
g_hash_table_insert (self->infos, widget, info);
}
if (info->last_node != node)
GtkUpdate *region = data;
cairo_region_destroy (region->region);
- g_slice_free (GtkUpdate, region);
+ g_free (region);
}
static void
gtk_widget_remove_tick_callback (updates->widget, updates->tick_callback);
updates->tick_callback = 0;
- g_slice_free (GtkWidgetUpdates, updates);
+ g_free (updates);
}
static void
if (updates || !create)
return updates;
- updates = g_slice_new0 (GtkWidgetUpdates);
+ updates = g_new0 (GtkWidgetUpdates, 1);
updates->updates = g_queue_new ();
updates->widget = widget;
updates->unmap_callback = g_signal_connect (widget, "unmap", G_CALLBACK (gtk_widget_updates_unmap_widget), self);
GtkUpdate *update;
GList *l;
- update = g_slice_new0 (GtkUpdate);
+ update = g_new0 (GtkUpdate, 1);
update->timestamp = timestamp;
update->region = region;
for (l = g_queue_peek_head_link (updates->updates); l != NULL; l = l->next)